import request from '@/utils/request.js'
//分页查询leader
export const getLeaderPage = (data) => {
    return request({
        url: '/leaders/page',//请求接口
        method: 'post',//请求方式
        data//请求参数
    })
}


export const getLeaderById = (id) => {
    const path = '/leaders/' + id
    return request({
        url: path,//请求接口
        method: 'get',//请求方式
    })
}
